package com.danceforyou.common.vo;

import com.danceforyou.common.util.StringUtil;

import java.util.Date;
import java.util.List;

public class GeneratorVO {

    /*表名*/
    private String tableName;
    /*对象名*/
    private String objectName;
    /*当前时间*/
    private Date nowDate = new Date();
    /*主键字段*/
    private Column priColumn;
    /*非主键字段*/
    private List<Column> columnList;

    public static class Column extends SqlColumnVO {
        private static final long serialVersionUID = 1704325905009591932L;
        private String humpColumnName;//列驼峰名

        public String getHumpColumnName() {
            return humpColumnName;
        }

        public void setHumpColumnName(String humpColumnName) {
            this.humpColumnName = humpColumnName;
        }

        public Column(SqlColumnVO column) {
            this.setTableName(column.getTableName());
            this.setColumnName(column.getColumnName());
            this.setColumnComment(column.getColumnComment());
            this.setDataType(column.getDataType());
            this.setHumpColumnName(column.getColumnName());
        }
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public Date getNowDate() {
        return nowDate;
    }

    public void setNowDate(Date nowDate) {
        this.nowDate = nowDate;
    }

    public Column getPriColumn() {
        return priColumn;
    }

    public void setPriColumn(Column priColumn) {
        this.priColumn = priColumn;
    }

    public List<Column> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<Column> columnList) {
        this.columnList = columnList;
    }
}
